﻿<%@ Page Language="C#" %>

<!DOCTYPE html>

<script runat="server">
    protected void enviar_Click(object sender, EventArgs e)
    {
		// Modificar las siguientes variables, según los datos del servidor y credenciales de acceso
		
		// Dirección de email de origen
        string from = "info@pfizer.com";
        
		//Dirección de email de destino
        string to = "informacioncentrum@pfizer.com";		
		
		// Password de la cuenta de email de origen
        string password = null;
		
		// Numero de puerto del servidor de email
		int puerto = 25;
		
		// Dirección del servidor de email
        string servidor = "localhost";
		
		
	    Mensaje.Visible = true;
        enviar.Enabled = false;

        string remitente = nombre.Text + " " + apellido.Text;

        System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
        mail.To.Add(to);
        mail.From = new System.Net.Mail.MailAddress(from, remitente , System.Text.Encoding.UTF8);
        mail.Subject = "Nueva consulta enviada desde el sitio CENTRUM.COM.AR" ;
        mail.SubjectEncoding = System.Text.Encoding.UTF8;
        mail.Body = "Nombre y apellido: " + remitente + Environment.NewLine + "Email: " + email.Text + Environment.NewLine + "Comentario: " + comentario.Text;
        mail.BodyEncoding = System.Text.Encoding.UTF8;
        mail.IsBodyHtml = false ;
        mail.Priority = System.Net.Mail.MailPriority.High;

        System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient();
        
        //client.Credentials = new System.Net.NetworkCredential(from, password);

        client.Port = puerto;
        client.Host = servidor;
        client.EnableSsl = false;
               try
                {
                    client.Send(mail);
                    Mensaje.Text = "Consulta enviada correctamente";
                }
                catch (Exception ex) 
                {
                    Exception ex2 = ex;
                    string errorMessage = string.Empty; 
                    while (ex2 != null)
                    {
                        errorMessage += ex2.ToString();
                        ex2 = ex2.InnerException;
                    }
                    //HttpContext.Current.Response.Write(errorMessage);
                    Mensaje.Text = "Error. Intente en unos minutos.";
                } // end try 
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Mensaje.Visible = false;
        }
        enviar.Attributes.Add("onMouseOut", "this.src='images/centrum_contacto_slide_form_12.jpg';");
        enviar.Attributes.Add("onMouseOver", "this.src='images/centrum_contacto_slide_form_on_12.jpg';");
    }
</script>

<html>
<head runat="server">
<title>CENTRUM ARGENTINA</title>
<style type="text/css">
.needsfilled {
    font-size:14px;
    font-weight: bold;
    color:red;
}	
</style>
<style type="text/css">
.legalesgris {	font-family: Arial, Helvetica, sans-serif;
	font-size: 9px;
	font-style: normal;
	line-height: 16px;
	font-weight: normal;
	color: #333;
	padding-top:5px;
}
.legalesgrisgrande {	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-style: normal;
	line-height: 8px;
	font-weight: normal;
	color: #333;
	font-variant: normal;
	word-spacing: normal;
	letter-spacing: normal;
	text-align: center;
}
.legalesnegrocap {	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-style: normal;
	line-height: 12px;
	font-weight: bold;
	color: #333;
	font-variant: small-caps;
	word-spacing: normal;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
}
#dire {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	line-height: 16px;
}
.txt_arial {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	text-decoration: underline;
	padding-left:40px;
}
#dire_link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	color: #F00;
}
.txt_campos {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-style: normal;
	color: #666;
	font-weight: bold;
	padding-left:20px;
}
</style>
<link href="css/estilos.css" rel="stylesheet" type="text/css" />
<!-- jQuery (required) -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script>    window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
<script type='text/javascript' src='js/menu.js'></script>
<link type='text/css' href='css/menu.css' rel='stylesheet' media='screen' />
<script type="text/javascript" src="js/validation.js"></script>
	<script type="text/javascript">
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-716970-11']);
	  _gaq.push(['_trackPageview']);

	  (function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form id="theform" runat="server">
<table width="1200" height="830" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
	<tr>
		<td style="background-image:url('images/centrum_home_01.jpg');" width="100" height="130"></td>
		<td valign="top" style="background-image:url('images/botonera_fondo_03.jpg');" width="1000" height="130">
			<div style="margin-left:15px; width:194px; height:94px; float:left; background-image:url('images/centrum_logo.png');">
				<a href="centrum_home.html" style="margin-left:15px; position: absolute; width:194px; height:94px;"></a>
			</div>
			<ul id="nav" style="margin-left:478px">
				<li id="botonProductos"><a href="#"></a>
					<ul>
						<li id="botonCentrum"><a href="centrum_centrum.html"></a></li>
						<li id="botonSilverVL"><a href="centrum_silver.html"></a></li>
					</ul>
				</li>
				<li id="botonVitMin"><a href="#"></a>
					<ul>
						<li id="botonImportancia"><a href="centrum_aporte.html"></a></li>
						<li id="botonEquilibrio"><a href="centrum_equilibrio.html"></a></li>
					</ul>
					
				</li>
				<li id="botonComerciales"><a href="centrum_comerciales.html"></a></li>
				<li id="botonProspecto"><a href="#"></a>
					<ul>
						<li id="botonProspectoCentrum"><a href="centrum_prospecto.html"></a></li>
						<li id="botonProspectoSilver"><a href="silver_prospecto.html"></a></li>
					</ul>
				</li>
				<li id="botonContacto"><a href="centrum_contacto.aspx"></a></li>
			</ul>
		</td>
		<td width="100" height="130"></td>
	</tr>
	<tr>
		<td></td>
		<td>
			<table width="1000" height="433" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td rowspan="3" style="background-image:url('images/centrum_contacto_slide_01.jpg');" width="332" height="433" alt=""></td>
					<td rowspan="3" style="background-image:url('images/centrum_contacto_slide_02.jpg');" width="19" height="433" alt=""></td>
					<td colspan="2" style="background-image:url('images/centrum_contacto_slide_03.jpg');" width="617" height="43" alt=""></td>
					<td rowspan="3" style="background-image:url('images/centrum_contacto_slide_04.jpg');" width="32" height="433" alt=""></td>
				</tr>
				<tr>
					<td style="background-image:url('images/centrum_contacto_slide_05.jpg');" width="443" height="45" alt=""></td>
					<td rowspan="2"  width="174" height="390" alt="" valign="top">
						<div id="dire" style="padding-top:70px; padding-left:5px">Ing. E. Butty 275 Piso 7&ordm;,<br>
										C.A.B.A., C1001AFA.<br>
										Rep&uacute;blica Argentina<br>
										Tel&eacute;fono: +11 4317 1600<br>
							<a href="mailto:informacioncentrum@pfizer.com" id="dire_link">informacioncentrum@pfizer.com</a>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<table width="443" height="346" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td colspan="3" style="background-image:url('images/centrum_contacto_slide_form_01.jpg');" width="428" height="20" alt=""></td>
								<td rowspan="7" style="background-image:url('images/centrum_contacto_slide_form_02.jpg');" width="15" height="345" alt=""></td>
							</tr>
							<tr>
								<td width="97" height="46" alt="">
									<span class="txt_campos">Nombre:</span>
								</td>
								<td colspan="2" style="background-image:url('images/centrum_contacto_slide_form_04.jpg');" width="331" height="46" alt="">
                                    <asp:TextBox runat="server" id="nombre" CssClass="loginbox"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td width="97" height="46" alt="">
									<span class="txt_campos">Apellido:</span>
								</td>
								<td colspan="2" style="background-image:url('images/centrum_contacto_slide_form_06.jpg');" width="331" height="46" alt="">
                                    <asp:TextBox runat="server" id="apellido" CssClass="loginbox"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td width="97" height="46" alt="">
									<span class="txt_campos">Email:</span>
								</td>
								<td colspan="2" style="background-image:url('images/centrum_contacto_slide_form_08.jpg');" width="331" height="46" alt="">
                                    <asp:TextBox runat="server" id="email" CssClass="loginbox"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td width="97" height="117" alt="">
									<span class="txt_campos">Mensaje:</span>
								</td>
								<td colspan="2" style="background-image:url('images/centrum_contacto_slide_form_10.jpg');" width="331" height="117" alt="">
                                    <asp:TextBox runat="server" id="comentario" TextMode="MultiLine" Rows="3" CssClass="loginbox" style="resize: none; overflow: hidden;"></asp:TextBox>
								</td>
							</tr>
							<tr>
								<td colspan="2" width="307" height="36" alt="">
									<div class="txt_arial"><a href="mailto:farmacovigilancia-argentina@pfizer.com;informacioncentrum@pfizer.com">Quiere Ud. reportar un evento adverso?</a></div>
									<div style="width:100%; text-align:center"><asp:Label runat="server" id="Mensaje" Text="Mensaje de error" Visible="false" CssClass="loginbox"></asp:Label></div>
								</td>
								<td width="121" height="36" alt="">
                                    <asp:ImageButton runat="server" id="enviar" ImageUrl="images/centrum_contacto_slide_form_12.jpg" CausesValidation="true" onclick="enviar_Click" />
                                </td>
							</tr>
							<tr>
								<td colspan="3" style="background-image:url('images/centrum_contacto_slide_form_13.jpg');" width="428" height="34" alt=""></td>
							</tr>
							<tr>
								<td style="background-image:url('images/spacer.gif" width="97" height="1" alt=""></td>
								<td style="background-image:url('images/spacer.gif" width="210" height="1" alt=""></td>
								<td style="background-image:url('images/spacer.gif" width="121" height="1" alt=""></td>
								<td style="background-image:url('images/spacer.gif" width="15" height="1" alt=""></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td></td>
	</tr>
	<tr>
		<td style="background-image:url('images/centrum_home_07.jpg');" width="100" height="150"></td>
		<td align="left" valign="top">
			<table width="1000" height="150" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td style="background-image:url('images/centrum_links_01.jpg');" width="333" height="150">
						<div class="celda-link">
							<a href="centrum_faq.html" class="link-celda"></a>
						</div>
					</td>
					<td style="background-image:url('images/centrum_links_02.jpg');" width="333" height="150">
						<div class="celda-link">
							<a href="/TestNutricional" class="link-celda"></a>
						</div>
					</td>
					<td style="background-image:url('images/centrum_links_03.jpg');" width="334" height="150">
						<div class="celda-link">
							<a href="centrum_equilibrio.html" class="link-celda"></a>
						</div>
					</td>
				</tr>
			</table>
		</td>
		<td style="background-image:url('images/centrum_home_09.jpg');" width="100" height="150"></td>
	</tr>
	<tr>
		<td style="background-image:url('images/centrum_home_10.jpg');" width="100" height="117">
		</td>
		<td align="left" valign="top">
			<table id="Table_01" width="1000" height="117" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td style="background-image:url('images/centrum_pie_01.jpg')" width="100" height="51"></td>
					<td align="right" style="background-image:url('images/centrum_pie_02.jpg')" width="800" height="51">
						<span class="legalesgris">Ing. E. Butty 275 piso 7&ordm; &bull; [C1001AFA] Buenos Aires &bull; Tel.: 4317-1600 &bull;  e-mail:<a href="mailto:informacioncentrum@pfizer.com">informacioncentrum@pfizer.com</a></span>
					</td>
					<td style="background-image:url('images/centrum_pie_03.jpg')" width="100" height="51"></td>
				</tr>
				<tr>
					<td style="background-image:url('images/centrum_pie_04.jpg')" width="100" height="58" alt=""></td>
					<td align="center"><span class="legalesnegrocap" style="text-align:center">LEA ATENTAMENTE EL PROSPECTO Y ANTE LA MENOR DUDA CONSULTE A SU M&Eacute;DICO Y/O FARMAC&Eacute;UTICO.</span><p class="legalesnegrocap" style="text-align:justify">
						<span class="legalesgrisgrande"><a href="http://centrum.com.ar/centrum_privacidad.html">Pol&iacute;tica de Privacidad</a>. T&eacute;rminos y condiciones &copy; copyright 2006 Pfizer, S.R.L.Todos los derechos reservados.La informaci&oacute;n contenida en este sitio tiene un prop&oacute;sito educacional e informativo &uacute;nicamente. Dicha informaci&oacute;n no debe ser tomada como consejo m&eacute;dico, diagn&oacute;stico o tratamiento. Usted siempre debe buscar el consejo de un profesional de la salud cuando tenga cualquier pregunta sobre alguna condici&oacute;n m&eacute;dica. La secci&oacute;n de productos y webs m&eacute;dicas est&aacute; exclusivamente destinada a satisfacer la necesidad de mayor informaci&oacute;n de los profesionales de la salud, para un uso adecuado de los medicamentos.Optimizado para 1024 x 768 p&iacute;xeles.<br>
						Direcci&oacute;n General de Defensa y Protecci&oacute;n al Consumidor - Para consultas y/o denuncias - <a href="http://defensadelconsumidor.buenosaires.gov.ar">Ingrese aqu&iacute;.</a> <a href="centrum_contacto.aspx">Libro de quejas On Line.</a> <a href="centrum_home.html">Volver al Home</a>.</span></p></td>
					<td style="background-image:url('images/centrum_pie_06.jpg')" width="100" height="58" alt=""></td>
				</tr>
			</table>
		</td>
		<td style="background-image:url('images/centrum_home_12.jpg" width="100" height="117">
		</td>
	</tr>
</table>    
</form>
</body>
</html>
